package com.starbaba.weixin.model;

import com.base.common.reflection.annotations.g3db_alias;
import com.base.common.reflection.annotations.g3db_ignore;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Yukinomiu
 * @version 1.0
 */
@g3db_alias("Weixin_Redpack_Record")
public final class Weixin_Redpack_Record implements Serializable {
    @g3db_ignore
    private static final long serialVersionUID = 2278315204388221627L;

    @g3db_alias("id")
    private Long id; // 主键
    @g3db_alias("money")
    private Long money; // 金额, 单位分
    @g3db_alias("type")
    private Integer type; // 红包类型
    @g3db_alias("status")
    private Integer status; // 状态

    @g3db_alias("phone")
    private String phone; // 电话号码
    @g3db_alias("deviceid")
    private String deviceId; // 设备ID

    @g3db_alias("service")
    private String service; // 服务
    @g3db_alias("sendname")
    private String sendName; // 发送者名称
    @g3db_alias("activityname")
    private String activityName; // 活动名称
    @g3db_alias("wishing")
    private String wishing;
    @g3db_alias("remark")
    private String remark; // 备注
    @g3db_alias("servicetype")
    private String serviceType;
    @g3db_alias("businessid")
    private String businessId;

    @g3db_alias("createtime")
    private Date createTime; // 创建时间
    @g3db_alias("updatetime")
    private Date updateTime; // 修改时间
    @g3db_alias("sendtime")
    private Date sendTime; // 实际发出时间
    @g3db_alias("successbillno")
    private String successBillNo;
    @g3db_alias("failbillno")
    private String failBillNo;
    @g3db_alias("errorcode")
    private String errorCode;
    @g3db_alias("errormsg")
    private String errorMsg;
    @g3db_alias("parentbillno")
    private String parentBillNo;
    @g3db_alias("product")
    private String product;

    @g3db_alias("currentstate")
    private String currentState; // 微信侧红包状态
    @g3db_alias("statetime")
    private Date stateTime; // 微信侧红包更新时间
    @g3db_alias("syncresponse")
    private String syncResponse;

    public Weixin_Redpack_Record() {
    }

    @Override
    public String toString() {
        return "Weixin_Redpack_Record{" +
                "id=" + id +
                ", money=" + money +
                ", type=" + type +
                ", status=" + status +
                ", phone='" + phone + '\'' +
                ", deviceId='" + deviceId + '\'' +
                ", service='" + service + '\'' +
                ", sendName='" + sendName + '\'' +
                ", activityName='" + activityName + '\'' +
                ", wishing='" + wishing + '\'' +
                ", remark='" + remark + '\'' +
                ", serviceType='" + serviceType + '\'' +
                ", businessId='" + businessId + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", sendTime=" + sendTime +
                ", successBillNo='" + successBillNo + '\'' +
                ", failBillNo='" + failBillNo + '\'' +
                ", errorCode='" + errorCode + '\'' +
                ", errorMsg='" + errorMsg + '\'' +
                ", parentBillNo='" + parentBillNo + '\'' +
                ", product='" + product + '\'' +
                ", currentState='" + currentState + '\'' +
                ", stateTime=" + stateTime +
                ", syncResponse='" + syncResponse + '\'' +
                '}';
    }

    public Long getId() {
        return id;
    }

    public Weixin_Redpack_Record setId(Long id) {
        this.id = id;
        return this;
    }

    public Long getMoney() {
        return money;
    }

    public Weixin_Redpack_Record setMoney(Long money) {
        this.money = money;
        return this;
    }

    public Integer getType() {
        return type;
    }

    public Weixin_Redpack_Record setType(Integer type) {
        this.type = type;
        return this;
    }

    public Integer getStatus() {
        return status;
    }

    public Weixin_Redpack_Record setStatus(Integer status) {
        this.status = status;
        return this;
    }

    public String getPhone() {
        return phone;
    }

    public Weixin_Redpack_Record setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public Weixin_Redpack_Record setDeviceId(String deviceId) {
        this.deviceId = deviceId;
        return this;
    }

    public String getService() {
        return service;
    }

    public Weixin_Redpack_Record setService(String service) {
        this.service = service;
        return this;
    }

    public String getSendName() {
        return sendName;
    }

    public Weixin_Redpack_Record setSendName(String sendName) {
        this.sendName = sendName;
        return this;
    }

    public String getActivityName() {
        return activityName;
    }

    public Weixin_Redpack_Record setActivityName(String activityName) {
        this.activityName = activityName;
        return this;
    }

    public String getWishing() {
        return wishing;
    }

    public Weixin_Redpack_Record setWishing(String wishing) {
        this.wishing = wishing;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public Weixin_Redpack_Record setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    public String getBusinessId() {
        return businessId;
    }

    public Weixin_Redpack_Record setBusinessId(String businessId) {
        this.businessId = businessId;
        return this;
    }

    public String getServiceType() {
        return serviceType;
    }

    public Weixin_Redpack_Record setServiceType(String serviceType) {
        this.serviceType = serviceType;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public Weixin_Redpack_Record setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public Weixin_Redpack_Record setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public Weixin_Redpack_Record setSendTime(Date sendTime) {
        this.sendTime = sendTime;
        return this;
    }

    public String getSuccessBillNo() {
        return successBillNo;
    }

    public Weixin_Redpack_Record setSuccessBillNo(String successBillNo) {
        this.successBillNo = successBillNo;
        return this;
    }

    public String getFailBillNo() {
        return failBillNo;
    }

    public Weixin_Redpack_Record setFailBillNo(String failBillNo) {
        this.failBillNo = failBillNo;
        return this;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public Weixin_Redpack_Record setErrorCode(String errorCode) {
        this.errorCode = errorCode;
        return this;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public Weixin_Redpack_Record setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
        return this;
    }

    public String getParentBillNo() {
        return parentBillNo;
    }

    public Weixin_Redpack_Record setParentBillNo(String parentBillNo) {
        this.parentBillNo = parentBillNo;
        return this;
    }

    public String getProduct() {
        return product;
    }

    public Weixin_Redpack_Record setProduct(String product) {
        this.product = product;
        return this;
    }

    public Date getStateTime() {
        return stateTime;
    }

    public Weixin_Redpack_Record setStateTime(Date stateTime) {
        this.stateTime = stateTime;
        return this;
    }

    public String getCurrentState() {
        return currentState;
    }

    public Weixin_Redpack_Record setCurrentState(String currentState) {
        this.currentState = currentState;
        return this;
    }

    public String getSyncResponse() {
        return syncResponse;
    }

    public Weixin_Redpack_Record setSyncResponse(String syncResponse) {
        this.syncResponse = syncResponse;
        return this;
    }
}
